package com.nbicc.service.parent.serivce;

import com.github.pagehelper.PageHelper;
import com.nbicc.core.common.RequestPageObj;

/**
 * @Author: lilingyan
 */
public class BaseSerivce {

    public void setPageHelper(RequestPageObj requestPageObj){
        if(requestPageObj.getPageNum() != null &&
                requestPageObj.getPageSize() != null){
            PageHelper.startPage(requestPageObj.getPageNum(), requestPageObj.getPageSize());
        }
    }

}
